/**
 * @ Author: hongjiazhun
 * @ Create Time: 2023-03-14 19:50:59
 * @ Modified by: hongjiazhun
 * @ Modified time: 2023-04-01 00:06:36
 * @ Description:排班-主表
 */

import request from '@/utils/request'

// 获取列表
export const getList = (params) => {
  return request({
    url: '/schedule/schedule/list',
    method: 'get',
    params
  })
}

// 新增
export const addList = (data) => {
  return request({
    url: '/schedule/schedule',
    method: 'post',
    data
  })
}

// 删除
export const delList = (scheduleTableIds) => {
  return request({
    url: '/schedule/schedule/' + scheduleTableIds,
    method: 'delete',
  })
}

// 编辑
export function updateList(data) {
  return request({
    url: '/schedule/schedule',
    method: 'put',
    data: data
  })
}

// 获取电话未填人数
export const getEmptyPhoneList = (params) => {
  return request({
    url: '/xmu-sys/user/listForEmptyPhone',
    method: 'get',
    params
  })
}

// 获取所有排班日期
export const getAllDays = (params) => {
  return request({
    url: '/schedule/schedule/scheduleAllDays',
    method: 'get',
  })
}